<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Homework1</title>
</head>
<body>
<pre>
    # 统计输入的字母和数字个数
    s = input()
    s_dict = {'digits':0, 'letters':0 }
    for each in s:
        if each.isdigit():
            s_dict['digits']+=1
        elif each.isalpha():
            s_dict['letters']+=1
        else:
            pass
    print(f"digits:{s_dict['digits']}")
    print(f"letters:{s_dict['letters']}")
</pre>
</body>
</html>